package com.hdax.dm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.entity.scheduler.OrderScheduler;
import com.hdax.dm.mapper.scheduler.OrderSchedulerMapper;
import com.hdax.dm.service.OrderSchedulerPService;
import org.springframework.stereotype.Service;

@Service
public class OrderSchedulerPServiceImpl extends ServiceImpl<OrderSchedulerMapper, OrderScheduler> implements OrderSchedulerPService {

    @Override
    public boolean updateSeatState(String orderNo, Long userId, Long id) {
        return baseMapper.updateSeatState(orderNo, userId, id);
    }

    @Override
    public boolean updateSeatState3(String orderNo) {
        return baseMapper.updateSeatState3(orderNo);
    }

    @Override
    public OrderScheduler getPrice(Long x, Long y, Long scheduleId) {
        return baseMapper.selectOrderScheduler(x, y, scheduleId);
    }

    @Override
    public boolean timeOutUpdateStart(String orderNo) {
        return baseMapper.timeOutUpdateStart(orderNo);
    }
}
